/*
 * Copyright (c) zero. 2022-2023. All rights reserved.
 *
 */

package com.zero.tool.string;

/**
 * @ClassName StringUtils
 * @Description
 * @Author lin
 * @Date 2022/7/23 上午12:34
 * @Version V1.0
 */
public class StringUtils {
    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }

    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }

    public static String firstCharUpperCase(String str){
        if(isEmpty(str)){
            return str;
        }
        char[] cs=str.toCharArray();
        cs[0]-=32;
        return String.valueOf(cs);
    }

}
